Word linked images

Word linked images

am 20.12.2007 14:04:06 von UKuser

Hi,

I have the following script:

$fp = fopen("docs/test3.doc","w+");
fwrite($fp,"Content-Type: application/vnd.ms-word\n");
fwrite($fp,"Expires: 0");
fwrite($fp,"Cache-Control: must-revalidate, post-check=0, pre-
check=0");
fwrite($fp,"content-disposition: attachment;filename=test3.doc");

$invoice = "



charset=windows-1250\">
xxx









0px;position:relative;height:30px;\">



";

fwrite($fp,$invoice);
print "$invoice";
?>

This works fine and converts & saves me a .doc file. However if that
file was moved to a computer which was not connected to the web
continuously, then my images wouldnt load. If you go into Word > Edit
> Links you can "break" the links so that Word tackles it locally.

My question is it possible to force Word in advance to not link to the
images but download them as well?

Many thanks

A

Re: Word linked images

am 20.12.2007 17:19:05 von Toby A Inkster

UKuser wrote:

> My question is it possible to force Word in advance to not link to the
> images but download them as well?

Yes -- create a proper Word file and include the images in it.

You are *not* creating a Word file -- you're creating an HTML file
that you're tricking (some) browsers into opening with Word.


--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 13 days, 2:53.]

Sharing Music with Apple iTunes
http://tobyinkster.co.uk/blog/2007/11/28/itunes-sharing/